package com.taotao.mapper;

import com.taotao.bean.TbContent;
import com.taotao.bean.TbContentCategory;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface TbContentMapper {

    List<TbContentCategory> findContentCategoryByParentId(Long parentId);

    int updateContentCategory(TbContentCategory tbContentCategory);

    int deleteContentCategoryByParent(TbContentCategory tbContentCategory);

    int deleteContentCategoryById(TbContentCategory tbContentCategory);

    int addContentCategory(TbContentCategory tbContentCategory);


    List<TbContent> findContentByCId(@Param("categoryId") Long categoryId, @Param("index") Integer index, @Param("limit") Integer limit);

    int findContentByCount(Long categoryId);

    int deleteContent(@Param("ids") List<Long> ids);

    int addContent(TbContent tbContent);
}
